import os
val = os.system('ffmpeg -i rtsp://admin:Buchou123@192.168.1.64:554/h264/ch1/main/av_stream -r 1/2 -f image2 /home/alex/rtsp_img/pic/images%05d.png -c copy -map 0 -f segment -segment_time 600 -segment_format mp4 "/home/alex/rtsp_img/out%03d.mp4"')
print(val)
